<%@page import="com.godot.entity.checher.EntityUtil"%>
<%@page import="com.godot.util.PMF"%>
<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="com.godot.entity.persistent.Godot"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	Boolean BFlag = (Boolean) session.getAttribute("isLogin");
	boolean flag = false;
	Godot godot = null;
	if (BFlag != null && BFlag) {
		flag = true;
		String key = (String) session.getAttribute("key");
		PersistenceManager pm = PMF.get().getPersistenceManager();
		godot = new EntityUtil(pm).getGodotById(key);
	} else {
		flag = false;
	}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>账户信息</title>
</head>
<body>

<%
	if (flag && godot != null) {
	%>
	<p>请编辑个人信息</p>
	<form action="/account" method="post">
		<input type="hidden" name="ACT" value="1">
		<span>新密码:</span><input type="password" name="pwd1"><br>
		<span>确认新密码:</span><input type="password" name="pwd2"><br>
		<span>新邮箱：</span><input type="text" name="email"><br>
		<span>昵称：</span><input type="text" name="qName"><br>
		<input type="submit" value="提交">
	</form>
	<%
	}
%>

</body>
</html>